package com.liuyu.common.framework.insurance.picc.zb.model.callback;

import lombok.Data;

/**
 * 人保总部回调通知响应
 *
 * @author: liuyu
 * @date: 2022/12/1 15:13
 * @version: 1
 */
@Data
public class PiccZbCallbackResponse {
    public static final String SUCCESS = "0";
    public static final String FAILURE = "-1";
    private String status;
    private String statusText;

    private PiccZbCallbackResponse(String status, String statusText) {
        this.status = status;
        this.statusText = statusText;
    }

    public static PiccZbCallbackResponse success(String statusText) {
        return new PiccZbCallbackResponse(SUCCESS, statusText);
    }

    public static PiccZbCallbackResponse failure(String statusText) {
        return new PiccZbCallbackResponse(FAILURE, statusText);
    }


}
